
hosts="zk23-01 zk23-02 zk23-03"

for host in $hosts
do
	echo "ssh $host echo 60 >  /proc/sys/vm/dirty_background_ratio"
	ssh $host echo "60 >  /proc/sys/vm/dirty_background_ratio"
        echo "ssh $host echo 80 >  /proc/sys/vm/dirty_ratio"
	ssh $host "echo 80 >  /proc/sys/vm/dirty_ratio"
        #set readahead
        echo "echo 8192 > /sys/block/sda/queue/read_ahead_kb"
        ssh $host "echo 8192 > /sys/block/sda/queue/read_ahead_kb"
        #close swapiness
        ssh $host "echo \"vm.swappiness = 0\" | tee -a /etc/sysctl.conf" 

        

         #echo "deadline" > /sys/block/sd[x]/queue/scheduler
        
        ssh $host "echo \"noop\" > /sys/block/sdk/queue/scheduler"
        ssh $host "echo \"noop\" > /sys/block/sdl/queue/scheduler"


done
